import { Environment } from "@/package/theme/src/environment.type";
//线上
const environmentprod = {
  production: true,
  useHash: true,
  api: {
    baseUrl: "https://micro.viptijian.com",
    refreshTokenEnabled: true,
    SESSION_TIMEOUT: 1800000, // localStorage超时时间ms
    refreshTokenType: 'auth-refresh'
  },
} as Environment;


//测试端
const environmentdev = {
  production: false,
  useHash: true,
  api: {
    baseUrl: "http://192.168.1.53:3002",
    refreshTokenEnabled: true,
    SESSION_TIMEOUT: 120, // localStorage超时时间ms
    refreshTokenType: 'auth-refresh'
  },
} as Environment;


const environment:{[key:string]:any} = {
  'development':environmentdev,
  'production':environmentprod
}


export default environment[import.meta.env.MODE] as Environment